{% load i18n %}
{%if var == 0%}
	{% for field in combox_hora_form %}
		{{ field }} <b>{%trans " horas"%}</b>
	    {% for error in field.errors %} 
	    	<div class="alert alert-danger">
	    		{{error}}
	    	</div> 
	    {% endfor %}
	{% endfor %}
{%else%}
	{% for field in combox_hora_min_form %}
		{{ field }}<b>{%trans " horas"%}</b>
	    {% for error in field.errors %} 
	    	<div class="alert alert-danger">
	    		{{error}}
	    	</div> 
	    {% endfor %}
	{% endfor %}
		
{% for field in combox_hora_max_form %}
		<b>{%trans " e as "%}</b>{{ field }} <b>{%trans " horas"%}</b>
	    {% for error in field.errors %} 
	    	<div class="alert alert-danger">
	    		{{error}}
	    	</div> 
	    {% endfor %}
	{% endfor %}
{%endif%}


<script type="text/javascript">
	$("#id_horas").focus(function() {
  		$("#error_horas_input").empty();
  	});
  	$("#id_horas_maximo").focus(function() {
  		$("#error_horas_input").empty();
  	});
</script>